]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Fix actor visibility
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 25 Feb 2015 17:08:53 +0000 (18:08 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 27 Feb 2015 13:16:30 +0000 (14:16 +0100)
The actor is supposed to be hidden while no notification banner
is displayed, and in addition to that when banners are temporarily
blocked (because the calendar is open). However the current code
always shows the actor when banners are not blocked, fix that.

https://bugzilla.gnome.org/show_bug.cgi?id=744912

js/ui/messageTray.js

index 149943c2f72c0dfb1108062d138b521d4ce9d230..139b165fc0627f5fe09f1c01352edc736f63ca7d 100644 (file)
@@ -1796,7 +1796,7 @@ const MessageTray = new Lang.Class({
     // _updateState() figures out what (if anything) needs to be done
     // at the present time.
     _updateState: function() {
-        this.actor.visible = !this._bannerBlocked;
+        this.actor.visible = !this._bannerBlocked && this._banner != null;
         if (this._bannerBlocked)
             return;